<template>
  <div>
    <el-button type="info" @click="userLogout">退出登录</el-button>
  </div>
</template>

<script setup>
import { logout } from '@/net'
import router from "@/router";

function userLogout() {
  logout(() => router.push("/"))
}
</script>

<style scoped>

</style>
